import { getSendCodeAPI, postUserRegisterAPI } from '@/api'

export default {
  namespaced: true,
  state: {

  },
  mutations: {

  },
  actions: {
    // 获取验证码
    async getSendCode({ commit }, data) {
      return await getSendCodeAPI(data)
    },
    // 注册用户
    async postUserRegister({ commit }, { phone, password, code }) {
      await postUserRegisterAPI(phone, password, code)
    }
  },
  getters: {

  }
}
